package edu.vital.energy.longevity.ch11.dao;

import edu.vital.energy.longevity.ch11.model.domain.Category;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CategoryMapper {

    void insertCategory(Category category);

    void deleteCategoryById(Integer id);

    void updateCategory(Category category);

    Category selectCategoryById(Integer id);

    List<Category> selectAllCategories();

    // More complex query to get categories with article counts might be needed
    // For now, keeping it simple. Count can be handled in service layer or a more complex query.
    List<String> selectAllCategoryNames();
}